quit maintaining the iter on every iteration, only get the iter when we
authorKristian Rietveld <kris@gtk.org>
Tue, 12 Jul 2005 23:01:17 +0000 (23:01 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Tue, 12 Jul 2005 23:01:17 +0000 (23:01 +0000)
commited5fe67f0ec27e88822b8ad55a7eb6a274eb37ef
tree40593bf6f940f7195840ecbf9fe1b90b6de90833
parent9731e6446c537df3c0ec55dfd2816acb3a3dbc29
quit maintaining the iter on every iteration, only get the iter when we

2005-07-13  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): quit
maintaining the iter on every iteration, only get the iter when
we are about to call the foreach_func. Gives us a 10x speedup,
since maintaining iters is a lot more expensive than maintaining
paths. We lose a bit of sanity checking though. Thanks go to
Billy Biggs for pointing this out.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtktreeselection.c